package cn.java59;

import java.util.Scanner;

public class Demo9 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("输入存款:");
		int num = sc.nextInt();
		System.out.println("输出存款:" + num);

		double sum = Math.round(num + num * 0.0035);
		double sum2 = Math.round(num + num * 0.015);
		double sum3 = Math.round(num + num * 0.007);
		double sum4 = Math.round(num + num * 0.021);
		System.out.println("活期一年" + sum);
		System.out.println("定期一年" + sum2);
		System.out.println("活期两年" + sum3);
		System.out.println("定期两年" + sum4);

	}

}
